package mysql

import "web_app/modules"

func GetCommunityList(coms *[]modules.Community) error {

	return GormDB.Select("community_id,community_name").Find(coms).Error
}

func GetCommunityById(com *modules.Community, communityID int64) error {
	return GormDB.Select("community_id,community_name,introduction,create_time").First(com, "community_id = ?", communityID).Error
}
